const fastify = require('fastify')({
    logger: true
})
const routes = require('./routes')

fastify.register(routes)

fastify.listen(3000, '0.0.0.0', (err, address) => {
    if (err) {
        fastify.log.error(err)
        process.exit(1)
    }
})
